package org.dev.vlp.mapper;

import org.apache.catalina.LifecycleState;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.dev.vlp.entity.Comment;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.dev.vlp.vo.CommentVo;
import org.hibernate.validator.constraints.NotEmpty;

import java.util.List;

/**
* @author 86184
* @description 针对表【vlp_comment(评论表)】的数据库操作Mapper
* @createDate 2023-01-12 14:11:04
* @Entity org.dev.vlp.entity.Comment
*/
@Mapper
public interface CommentMapper extends BaseMapper<Comment> {

    int exists(int commentId);

    List<CommentVo> getMomentComment(int start,int size,int momentId,int parentId);

    List<CommentVo> queryCommentIds(@Param("commentIdList") List<Long> commentIdList);

    int updateLikeCount(@Param("id") Long id, @Param("count") int count);
}




